package com.ruoyi.store.feign;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.store.domain.TbDishes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(contextId = "dishesFeignClient", value = ServiceNameConstants.DISHES_SERVICE)
public interface DishesClient {

    @GetMapping("/dishes/list")
    public List<TbDishes> list(@SpringQueryMap TbDishes tbDishes);

}
